define(function(require, exports, module) {

  // var Backbone = require('backbone');
  var $ = require('jquery');
  // var _ = require('underscore');
  // var jsonview = require('jsonview');
  var tmpl = require('text!../tmpl.html');

  function main() {
    var $app = $('<div id="app">');
    $('#main').html($app);

    $app.append(tmpl);
    
    document.getElementById('s1').addEventListener('change', function(e) {
      document.getElementById('example').style.whiteSpace = e.target.value;
    });
    document.getElementById('s2').addEventListener('change', function(e) {
      document.getElementById('example').style.wordBreak = e.target.value;
    });
    document.getElementById('s3').addEventListener('change', function(e) {
      document.getElementById('example').style.wordWrap = e.target.value;
    });
  }

  return main;
})
